<meta charset='utf-8' />

<body style='padding:10px;color:#838'>
	

	<div id='nav' style='color:blue;text-align:right;color:#838'>
		<span style='margin:10px'></span>
		<span style='cursor:pointer;margin:10px' onclick=_load('yao')>中药</span>
		<span style='cursor:pointer;margin:10px' onclick=_load('fang')>方剂</span>
		<span style='cursor:pointer;margin:10px' onclick=_load('bing')>医案</span>
		<span style='display:none' class='userConArea'>
			<span style='margin:10px'>用户：<span id='userName'>aaa</span></span>
			<span style='cursor:pointer;margin:10px' onclick='exit()'>退出</span>
		</span>
	</div>

	<div id='content'>
		<h2 style='text-align:center'>中医药查询</h2>
	</div>




</body>

<script src='./public/jquery.js'></script>
<script src='./public/fun.js'></script>
<script src='./public/md5.js'></script>
<script>

_load();
_checkUser();	//显示登陆用户及退出

function _load(type){
	switch(type){
		case 'yao':
			var path = './index_yao.html';
		break;
		case 'fang':
			var path = './index_fang.html';
		break;
		case 'bing':
			var path = './index_bing.html';
		break;
		default:
			var path = './index_yao.html';
	}
	Ajax({},function(res){
		$('#content').html(res);
	},path);
}




</script>